package com.hz.house.dao;

import com.hz.house.bean.entity.CallPhoneBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CallPhoneMapper {
    //插入电话编码记录
    void insert(CallPhoneBean bean);
    //更新通话回调记录
    void update(CallPhoneBean bean);
    //获取通话记录,按时间倒序排序
    List<CallPhoneBean> selectBySellMan(@Param("sellmanId") Integer sellmanId, @Param("isAll") Boolean isAll);
    //获取下一个主键值
    Integer selectNextId();
    //统计当天通话数量
    Integer sumDayCallLog(@Param("sellmanId") Integer sellmanId, @Param("consumerId") Integer consumerId);
}
